package com.gxar.quick.ar.server.base.model.plaza.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/1/22 14:28
 */
@Data
public class PlazaVO {

    @ApiModelProperty("作品id")
    @JSONField(name = "works_id")
    @JsonProperty("works_id")
    @NotBlank(message = "作品id不能为空")
    private String worksId;

    @ApiModelProperty("标题")
    @JSONField(name = "title")
    @JsonProperty("title")
    @NotBlank(message = "请填写标题")
    private String title;

    @ApiModelProperty("内容")
    @JSONField(name = "content")
    @JsonProperty("content")
    @NotBlank(message = "请填写内容")
    private String content;

    @ApiModelProperty("封面")
    @JSONField(name = "cover_page")
    @JsonProperty("cover_page")
    @NotBlank(message = "请上传封面")
    private String coverPage;

}
